
import static org.junit.Assert.assertEquals;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;


/**
 * 
 */

/**
 * @author Pieter
 *
 */
public class SquareTest {

	/**
	 * @throws java.lang.Exception
	 */
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	/**
	 * @throws java.lang.Exception
	 */
	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	/**
	 * @throws java.lang.Exception
	 */
	@Before
	public void setUp() throws Exception {
		newSquare = new Square(200);
		
	}

	/**
	 * @throws java.lang.Exception
	 */
	@After
	public void tearDown() throws Exception {
	}

	public Square newSquare;
	
	@Test (expected = IllegalTemperatureException.class)
	public final void setTemperatureMinus400(){
		newSquare.setTemperature(-400);
		
		
	}
	
	@Test (expected = IllegalTemperatureException.class)
	public final void setTemperature400000(){
		newSquare.setTemperature(400000);
		
		
	}
	
	
	@Test 
	public final void setTemperature200(){
		
		assertEquals(200, newSquare.getTemperature());
		
	}
	
}
